package com.yqya.springboot.hello.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * hello 配置属性类
 *
 * @author Kevin
 * @date 2019-07-26
 */
@ConfigurationProperties(prefix = "hello")
public class HelloServiceProperties {

    /**
     * 信息
     */
    private String msg = "starter";

    /**
     * 是否显示
     * 未配置，则使用默认值
     */
    private boolean isShow = true;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isShow() {
        return isShow;
    }

    public void setShow(boolean show) {
        isShow = show;
    }

}
